package 课工场练习;

public abstract class Vehicle {
	// 车牌号 品牌 日租金
	private String id;
	private String brand;
	private int perRent;

	public Vehicle() {
	}

	// Vehicle的带参构造方法
	public Vehicle(String id, String brand, int perRent) {
		this.id = id;
		this.brand = brand;
		this.perRent = perRent;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getBrand() {
		return brand;
	}

	public void setPerRent(int perRent) {
		this.perRent = perRent;
	}

	public int getPerRent() {
		return perRent;
	}

	// 抽象方法计算租金
	public abstract double calcRent(int days);

}
